package PlaneGame.CODE;

import java.awt.*;

public abstract class GameString extends GameObject{
    String content;
    Font font=new Font("SimHei", Font.BOLD, 20);
    public GameString(String content, int x, int y) {
        this.content = content;
        this.x=x;
        this.y=y;
    }
    @Override
    void draw(Graphics g) {
        g.setFont(font);
        g.setColor(Color.WHITE);
        g.drawString(content,x,y);
    }
}
